﻿' LibWowAPI
' by Ronald M. Clifford (roncli@roncli.com)
'
' This source code is released under the GNU Library General Public License (LGPL) Version 2.1.

Imports System.Collections.ObjectModel

Namespace roncliProductions.LibWowAPI.Data.GuildAchievements

    ''' <summary>
    ''' A class containing information about a guild achievement category.
    ''' </summary>
    ''' <remarks></remarks>
    Public Class Category

        ''' <summary>
        ''' The ID number of the guild achievement category.
        ''' </summary>
        ''' <value></value>
        ''' <returns></returns>
        ''' <remarks></remarks>
        Public Property ID As Integer

        Private colCategories As Collection(Of Category)
        ''' <summary>
        ''' The guild achievement category's subcategories.
        ''' </summary>
        ''' <value></value>
        ''' <returns></returns>
        ''' <remarks></remarks>
        Public ReadOnly Property Categories As Collection(Of Category)
            Get
                Return colCategories
            End Get
        End Property

        ''' <summary>
        ''' The name of the guild achievement category.
        ''' </summary>
        ''' <value></value>
        ''' <returns></returns>
        ''' <remarks></remarks>
        Public Property Name As String

        Private colAchievements As Collection(Of Achievement)
        ''' <summary>
        ''' The guild achievements within this category.
        ''' </summary>
        ''' <value></value>
        ''' <returns></returns>
        ''' <remarks></remarks>
        Public ReadOnly Property Achievements As Collection(Of Achievement)
            Get
                Return colAchievements
            End Get
        End Property

        Protected Friend Sub New(intID As Integer, cCategories As Collection(Of Category), strName As String, aAchievements As Collection(Of Achievement))
            ID = intID
            colCategories = cCategories
            Name = strName
            colAchievements = aAchievements
        End Sub

    End Class

End Namespace
